#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<assert.h>
using namespace std;
#include"string.h"
int main()
{
	mystr::string s1;
	mystr::string s2;
	cin >> s1 >> s2;
	mystr::string s3 = s1.substr(2, 5);
	cout << s1 << s2 << s3 << endl;
	return 0;
}